home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- import re
- from checkbox.component import ComponentManager
-
- class PluginManager(ComponentManager):
- '''
- Plugin manager which extends the component to support the concepts
- of a reactor.
- '''
-
- def __init__(self, config, reactor, registry):
- super(PluginManager, self).__init__(config)
- self.reactor = reactor
- self.registry = registry
- self.sections = []
- section_names = self._config.get_defaults().plugins
- for section_name in re.split('\\s+', section_names):
- section = self.load_section(section_name)
- self.sections.append(section)
- for module in section.load_modules():
- module.register(self)
-
-
-
-
-
- class Plugin(object):
- '''
- Plugin base class which should be inherited by each plugin
- implementation. This class extends the component to automatically
- call the run method if defined.
- '''
-
- def register(self, manager):
- self._manager = manager
-
-
-